package com.sch.study.collection;

import java.util.HashMap;
import java.util.Map;

/**
 * User: hui_stone
 * Date: 2016/2/17 0017
 * Time: 上午 8:48
 */
public class HashMapTest {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<String,String>();

        map.put("1","a");//a  1 1
        map.put("2","b");//b  2 2
        map.put("3","c");//c  3 3
        map.put("4","d");//d  4 4
        map.put("3","e");//e  5 5

        for(Map.Entry<String,String> e:map.entrySet()){
            System.out.println("key:"+e.getKey()+" value:"+e.getValue());
        }
    }
}
